@REM Begin all REM lines with '@' in case ECHO is 'on'
@ECHO OFF
@setlocal EnableDelayedExpansion

CHCP 65001 >NUL
@REM set title of command window
title %0

SET projectDir=D:\alee\fox_documents\Fox_ThingsBoard_Dev\code
mvnd -f %projectDir%\pom.xml clean package -DskipTests

SET yy=%date:~3,4%
SET mm=%date:~8,2%
SET dd=%date:~11,2%
SET date=%yy%-%mm%-%dd%

@REM kscp 与服务器文件传输
D:\alee\exec\kitty-bin-0.76.0.8\kscp.exe -pw mfox_3edc$RFV %projectDir%\application\target\thingsx.rpm root@192.168.18.105:/root/thingsx-%date%.rpm

ECHO -------------程序 3 秒后将自动退出-------------
ping 127.0.0.1 -n 3 >NUL 2>NUL

exit
